<?php
/**
 * Main application controller
 *
 * @author Lukas Normantas
 */
class IndexController extends Areal_Controller_Action
{

    /**
     * Index page
     */
    public function indexAction()
    {
        $this->_forward('index', 'special', 'catalog');
    }

    public function introAction()
    {
        $this->_forward('intro', 'menu', 'content');
    }


    public function adminAction()
    {

    }

    public function instalAction(){
        Doctrine::dropDatabases();
        Doctrine::createDatabases();
        $user = new Default_User();
        $post = new Blog_Post();
        $comment = new Blog_Comment();
        Doctrine::createTablesFromArray(Doctrine::getLoadedModels());
        Doctrine::loadData(BASE_PATH . 'database-seed.yml');
    }



    public function sitemapAction()
    {}
}